package com.etao.restaurantdao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.junit.Before;
import org.junit.Test;

import com.etao.restaurantdao.dao.impl.SupplierDishDaoImpl;
import com.etao.restaurantentity.resp.SupplierQuery;


public class testdao {

	private SupplierDishDaoImpl supplierDish = new SupplierDishDaoImpl();

	@Before
	public void setUp() throws Exception {
	}

	/*
	 * @Test public void test() { fail("Not yet implemented"); }
	 */
	@Test
	public void getSupplierQuery() {
		Map<String, String> map = new HashMap<String, String>();
		map.put("userName", "yhx2");
		map.put("pwd", "E99A18C428CB38D5F260853678922E03");
		List<SupplierQuery> getSupplierQuery = supplierDish.GetSupplierQuery(map);
		if (getSupplierQuery != null) {
			for (SupplierQuery supplierQuery : getSupplierQuery) {
				System.out.println(supplierQuery.getSupplierName());
			}

		}
	}
}
